package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel("投诉解决方案答案")
@Entity
@Table(name = "complaint_solution_data")
public class ComplaintSolutionData extends BaseEntity {

    @ApiModelProperty("问题ID")
    private Long questionId;

    @ApiModelProperty("答案ID")
    private String answerId;

    @ApiModelProperty("文本框答案")
    private String answerOther;

    @ApiModelProperty("文本框答案2")
    private String answerOther2;

    @ApiModelProperty("投诉解决方案报告")
    private ComplaintSolutionReport complaintSolutionReport;

    @Column(name = "question_id")
    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    @Column(name = "answer_id")
    public String getAnswerId() {
        return answerId;
    }

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    @Column(name = "answer_other_id")
    public String getAnswerOther() {
        return answerOther;
    }

    public void setAnswerOther(String answerOther) {
        this.answerOther = answerOther;
    }

    @Column(name = "answer_other_id2")
    public String getAnswerOther2() {
        return answerOther2;
    }

    public void setAnswerOther2(String answerOther2) {
        this.answerOther2 = answerOther2;
    }

    @ManyToOne
    @JoinColumn(name = "complaint_solution_report_id")
    public ComplaintSolutionReport getComplaintSolutionReport() {
        return complaintSolutionReport;
    }

    public void setComplaintSolutionReport(ComplaintSolutionReport complaintSolutionReport) {
        this.complaintSolutionReport = complaintSolutionReport;
    }
}
